<!DOCTYPE html>
<html>
<head>
    <script src="../static/js/jquery-1.12.3.js">
    </script>
    <script>
        $(document).ready(function(){
            $("#btn1").click(function(){
                $('#test').load('/api/bit',function(a,b,c){
                    console.log(a);
                    console.log(b);
                    console.log(c);
                });
            })
        })
    </script>
</head>

<body>

<h3 id="test">请点击下面的按钮，通过 jQuery AJAX 改变这段文本。</h3>
<button id="btn1" type="button">获得外部的内容</button>

</body>
</html>